There's a DC motor example that uses the simpletools library in 

...Documents\Learn\Examples\Motor\DC